using System;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization;

using Microsoft.VisualStudio.TestTools.UnitTesting;
using Pegasus.Runtime.Serialization.Formatters.Xml;

namespace Pegasus.UnitTests.Runtime.Serialization.Formatters.Xml.XmlFormatter2Tests
{
	[TestClass]
	public class XmlFormatter2VersionTest
	{
		// Local Instance Values
		private TestContext m_testContextInstance;

		/// <summary>
		/// Initializes a new instance of the <see cref="T:XmlFormatter2VersionTest"/> class.
		/// </summary>
		public XmlFormatter2VersionTest()
		{
		}

		/// <summary>
		/// Gets or sets the test context which provides information about and 
		/// functionality for the current test run.
		/// </summary>
		/// <value>The test context.</value>
		public TestContext TestContext
		{
			get
			{
				return m_testContextInstance;
			}
			set
			{
				m_testContextInstance = value;
			}
		}

		/// <summary>
		/// Test the Deserialize of the blob with difference version numbers.
		/// </summary>
//		[TestMethod]
		public void BackwardsVersionTest()
		{
/*			object obj = null;

			try
			{
				Stream stream = typeof( XmlFormatter2VersionTest ).Assembly.GetManifestResourceStream( "Pegasus.UnitTests.Runtime.Serialization.Formatters.Xml.XmlFormatter2Tests.DataVersionType2.xml" );

				XmlFormatter2 xmlFormatter = new XmlFormatter2( null, new StreamingContext( StreamingContextStates.Persistence ) );
				obj = xmlFormatter.Deserialize( stream );
			}
			catch( Exception e )
			{
				Pegasus.Diagnostics.TraceCode.Exception( e );
			}

			Assert.IsNotNull( obj );
*/		}
	}
}
